#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from dragon.locatordetail import LocatorDetail

class StockDetailPage:
    stockName=LocatorDetail('div.detail-head-left > span.stock-name','股票名称')
    stock=LocatorDetail('div.detail-head-left','股票')
    stockCode=LocatorDetail('div.detail-head-left > span.stock-num','股票代码')
    selectedShortcutDate=LocatorDetail('div.blue-box>div.date-monthday','选中的快捷日期')
    shortcutDate=LocatorDetail('div.date-monthday','快捷日期选项')
    selectedMainForceButton=LocatorDetail('div.track-box > div.tabs-box > div> div.tabs-item.active','选中的主力轨迹标签')
    dayTrack=LocatorDetail('当日轨迹','当日轨迹按钮','text')
    monthTrack = LocatorDetail('月度轨迹', '月度轨迹按钮', 'text')
    trackDetail=LocatorDetail('轨迹详情','轨迹详情按钮','text')
    startDate=LocatorDetail('div.twoDate>div:nth-child(1)','开始时间按钮')
    endDate=LocatorDetail('div.twoDate>div:nth-child(3)','结束时间按钮')
    changeCount=LocatorDetail('div.count>span','资金次数')
    changeTime=LocatorDetail('div.time','异动时间')
    changeDetail=LocatorDetail('div.today-box>div','异动详情')
    changeDetailTime=LocatorDetail('div.today-box>div>div>div:nth-child(3)','异动时间(异动详情)')
    trackDetailDate=LocatorDetail('td.el-table_1_column_2.el-table__cell > div > div','轨迹日期(轨迹详情)')
    selectedKlineButton=LocatorDetail('div.k-line > div.tabs-box > div> div.tabs-item.active','选中的k线选项')
    dayK = LocatorDetail('日线', '日线选项', 'text')
    weekK = LocatorDetail('周线', '周线选项', 'text')
    monthK = LocatorDetail('月线', '月线选项', 'text')
    dayKChart=LocatorDetail('div#Kdate > div:nth-child(1) > canvas','日线图表')
    dayKDetailFloat=LocatorDetail('div#Kdate > div:nth-child(2)','日线详情浮窗')
    weekKChart=LocatorDetail('div#Kfive > div:nth-child(1) > canvas','周线图表')
    weekKDetailFloat=LocatorDetail('div#Kfive > div:nth-child(2)','周线详情浮窗')
    monthKChart=LocatorDetail('div#Kweek > div:nth-child(1) > canvas','月线图表')
    monthKDetailFloat=LocatorDetail('div#Kweek > div:nth-child(2)','月k线详情浮窗')
    calendarButton = LocatorDetail('div.date-text', '日历按钮')
    # shareButton=LocatorDetail('分享','分享按钮','text')
    shareButton=LocatorDetail('div.footer-box > div > div:nth-child(1) > div > div.footer-nav-flex > svg','分享按钮')
    subscribeButton=LocatorDetail('div.footer-box > div > div:nth-child(1) > div > div:nth-child(2) > div > svg','加自选按钮')
    isSubscribed=LocatorDetail('div.footer-box > div > div:nth-child(1) > div > div:nth-child(2) > div > div','是否加自选标志')
    alert=LocatorDetail('p.el-message__content','提示')
    previousButton=LocatorDetail('上一支','上一支按钮','text')
    nextButton = LocatorDetail('下一支', '下一支按钮', 'text')



